package com.mock.autoconfigure;

import com.mock.autoconfigure.properties.MockProperties;
import com.mock.autoconfigure.service.HelloService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(MockProperties.class)
public class MockAutoConfiguration {

    @Bean
    public HelloService helloService(){
        return new HelloService();
    }
}
